<template>
<div>
  <h2>电影列表</h2>
  <button @click="getMovieList">点击获取电影列表</button>
  <ul>
    <li v-for="item in movieList" :key="item.albumId">{{item.name}}</li>
  </ul>
</div>
</template>

<script>
import {mapActions, mapState} from "vuex";

export default {
  name: "Movie",
  computed:{
    ...mapState('Movie',['movieList'])
  },
  methods:{
    ...mapActions('Movie',['getMovieList'])
  }
}
</script>

<style scoped>

</style>